<!DOCTYPE html>
<!-- saved from url=(0056)http://startbootstrap.com/templates/simple-sidebar.html# -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Panel</title>
<?php $this->load->view('panel_head');?>
<script src="<?php echo base_url();?>js/jquery-1.8.3.js"></script> 
</head>

<body onload="startTime()">
<?php $this->load->view('panel_header');?>
<div style="height:46px;"></div>
<div id="wrapper"> 
  
  <!-- Sidebar -->
  <div id="sidebar-wrapper">
    <?php $this->load->view('panel_sidebar');?>
  </div>
  
  <!-- Page content -->
  <div id="page-content-wrapper">
    <div class="content-header">
      <h1><span class="glyphicon glyphicon-envelope"></span>&nbsp;Report</h1>
    </div>
    <!-- Keep all page content within the page-content inset div! -->
    
    <div class="page-content inset">
     
      
     
      
      <div>
      <?php echo form_open('preport/select_del_report'); ?>
        <table class="table table-striped table-hover">
          <tr class="bg-primary">
            <td colspan="6">
              <div style="float:left;" >
                  <select class="form-control" style="width:8em;">
                    <option>Bulk Action</option>
                    <option>Delete</option>
                  </select>
                <button type="submit" class="btn btn-default">Apply</button>
              </div>
             
             <div style="float:right;"></div>
              
              </td>
              
                      <?php foreach($group as $group) { ?>          
              
          </tr>
          <tr class="info" align="center">
          <td width="3%">
              <input type="checkbox" name="vdo_all[]" style="width:1.7em; height:1.7em;" value="<?php echo $group['vdo_id'];?>" />
        </td>
            <td width="27%"><strong><?php echo $group['vdo_name']; ?></strong></td>
            <!--
            <td width="4%" align="left" ><font size="+2"><span class="glyphicon glyphicon-envelope"></span></font></td>
            -->
            
            <td width="70%" ><strong>Detail</strong></td>
          </tr>
          
       
  
                  
          
          <tr>
            <td style="text-align:center" colspan="2"><a href = "<?php echo base_url();?>index.php/player/cs/<?php echo $group['vdo_id'];?>" ><img src="<?php echo base_url();?>vod_thumb/<?php echo $group['vdo_rawfile'];?>/<?php echo $group['thumb_name'];?>" width="100%"/></a></td>
            <!--
            <td align="center"><font size="+2"><span class="glyphicon glyphicon-envelope"></span></font></td>
            -->
            
           
          
            <!-- Detail -->
            <td>
            
            <?php 
				$get_report = $this->preport_model->get_report($group['vdo_id']);
			?>
            
            <?php foreach($get_report as $get_report) { ?>
       
        <table 	style="margin-bottom:1em;">
        	<tr>
            	<td rowspan="3"> <input type="checkbox" name="select_all[]" style="width:1.7em; height:1.7em;" value="<?php echo $get_report['rvdo_id'];?>" /></td>	
            </tr>
        	<tr>
            	<td rowspan="2" width="60em">
                    <a href="<?php echo base_url();?>index.php/pmember/profile/<?php $get_report['mem_id'];?>">
                    <?php if($get_report['mem_name'] != '') { ?>
                   		<img src="<?php echo base_url();?>uploads/<?php echo $get_report['mem_image']; ?>" width="50em"></img>
                    <?php } else { ?>
               			
                    <?php } ?>
                    </a>
                </td>
                <td>
                	<strong>
                    	<font size="2">
                        <?php if($get_report['mem_name'] != '') { ?>
                            <a href="<?php echo base_url();?>index.php/pmember/profile/<?php $get_report['mem_id'];?>">
                            <?php echo $get_report['mem_name'];?>
                            </a>
                        <?php } else { ?>
                        	<?php
								$this->db->where('rvdo_id' ,$get_report['rvdo_id']);
								$query = $this->db->get('report_vdo');
								$report = $query->result_array();
								
								echo $report[0]['rvdo_from'];
							?>
                        <?php } ?>
                        </font>
                    </strong>
                   	<font size="-2"><?php echo $get_report['rvdo_date'];?></font>
                </td>
            </tr>
            <tr>
            	
                <td>
                <?php echo $get_report['rvdo_ment'];?>
                </td>
            </tr>
        </table>
        
        
			
        <?php } ?>
            
            
            
            </td>
        	<!-- Detail -->
          </tr>
  
          <?php } ?>
        
        </table>
        <?php echo form_close();?>
      </div>
      <!-- <div class="table-responsive"> --> 
      
    
    </div>
    <!-- <div class="page-content inset"> --> 
    
  </div>
  <!--  <div id="page-content-wrapper"> --> 
  
</div>
<!-- <div id="wrapper"> --> 


<!-- Custom JavaScript for the Menu Toggle --> 
<script>
    $("#menu-toggle").click(function(e) {
        e.preventDefault();
        $("#wrapper").toggleClass("active");
    });
</script> 

   
</body>
</html>